package com.ccll.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ccll.domain.po.Menu;
import com.ccll.mapper.MenuMapper;
import com.ccll.service.MenuService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author Seon
 * @date 2022/11/12 13:08
 */
@Service
public class MenuServiceImpl
        extends ServiceImpl<MenuMapper, Menu> implements MenuService {
    @Autowired
    private MenuMapper menuMapper;

    @Override
    public List<String> getPermissionById(long userId) {
        return menuMapper.selectPermsByUserId(userId);
    }
}
